import React, { useContext } from 'react'

import { AppContext } from "../context"

export default function G() {
  const context = useContext(AppContext)

  return (
    <div className="G">
      <p>G组件,接收到数据:<br/>
        <span>{context.user.name}-{context.user.age}</span>
      </p>
    </div>
  )
}
